<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="com.jiadakeji.ppm.modules.sys.utils.*" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
    <title>小区月报表</title>
    <meta name="decorator" content="default"/>
    <script type="text/javascript">
        $(document).ready(function() {

        });
        function page(n,s){
            $("#pageNo").val(n);
            $("#pageSize").val(s);
            $("#searchForm").submit();
            return false;
        }
    </script>
</head>
<body>
<ul class="nav nav-tabs">
    <li class="active"><a href="${ctx}/business/report/getReportCommunity">小区月报表</a></li>
</ul>
<form:form id="searchForm" modelAttribute="reportCommunityDTO" action="${ctx}/business/report/getReportCommunity" method="post" class="breadcrumb form-search">
    <li><label>缴费月份：</label>

        <form:select path="feeMonthId" class="input-medium">
            <form:option value="" label=""/>
            <form:options items="${fns:getFeeMonthList()}" itemLabel="monthString" itemValue="id" htmlEscape="false"/>
        </form:select>
    </li>
    <li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
    <li class="clearfix"></li>
</form:form>
<sys:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
    <thead>
    <tr>
        <th>小区名称</th>
        <th>当前总房间数</th>
        <th>当前入住房间数</th>
        <th>当前入住率</th>
        <th>本月物业管理费</th>
        <th>本月均摊电费</th>
        <th>本月均摊水费</th>
        <th>本月二次加压水电费</th>
        <th>本月停车费</th>
        <th>本月电梯费</th>
        <th>本月总应收费用</th>
        <th>本月已回收费用</th>
        <th>本月回收率</th>
        <th>本年物业管理费</th>
        <th>本年均摊电费</th>
        <th>本年均摊水费</th>
        <th>本年二次加压水电费</th>
        <th>本年停车费</th>
        <th>本年电梯费</th>
        <th>本年度总应收费用</th>
        <th>本年度已回收费用</th>
        <th>本年度回收率</th>
        <%--<th>历史总应收费用</th>
        <th>历史已回收费用</th>
        <th>历史总回收率</th>--%>
        <shiro:hasPermission name="business:report:view"><th>操作</th></shiro:hasPermission>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${reportList}" var="reportCommunityDTO">
        <tr>
            <td>
                    ${reportCommunityDTO.communityName}
            </td>
            <td>
                    ${reportCommunityDTO.totalRoom}
            </td>
            <td>
                    ${reportCommunityDTO.usedRoom}

            </td>
            <td>
                    ${reportCommunityDTO.usedRate}
            </td>
            <td>
                    ${reportCommunityDTO.manageFee}
            </td>
            <td>
                    ${reportCommunityDTO.avgElecFee}
            </td>
            <td>
                    ${reportCommunityDTO.avgWaterFee}
            </td>
            <td>
                    ${reportCommunityDTO.secondPushElecFee}
            </td>
            <td>
                    ${reportCommunityDTO.carMonthFee}
            </td>
            <td>
                    ${reportCommunityDTO.elevatorFee}
            </td>
            <td>
                    ${reportCommunityDTO.totalFee}
            </td>
            <td>
                    ${reportCommunityDTO.receivedFee}
            </td>
            <td>
                    ${reportCommunityDTO.receivedRate}
            </td>
            <td>
                    ${reportCommunityDTO.yearManageFee}
            </td>
            <td>
                    ${reportCommunityDTO.yearAvgElecFee}
            </td>
            <td>
                    ${reportCommunityDTO.yearAvgWaterFee}
            </td>
            <td>
                    ${reportCommunityDTO.yearSecondPushElecFee}
            </td>
            <td>
                    ${reportCommunityDTO.yearCarMonthFee}
            </td>
            <td>
                    ${reportCommunityDTO.yearElevatorFee}
            </td>
            <td>
                    ${reportCommunityDTO.yearTotalFee}
            </td>
            <td>
                    ${reportCommunityDTO.yearReceivedFee}
            </td>
            <td>
                    ${reportCommunityDTO.yearReceivedRate}
            </td>
            <%--<td>
                    ${reportCommunityDTO.historyTotalFee}
            </td>
            <td>
                    ${reportCommunityDTO.historyReceivedFee}
            </td>
            <td>
                    ${reportCommunityDTO.historyReceivedRate}
            </td>--%>
            <shiro:hasPermission name="business:report:view"><td>
                <c:if test="${reportCommunityDTO.communityId != '0'}">
                    <a href="${ctx}/business/report/getReportBuilding?communityId=${reportCommunityDTO.communityId}">查看明细</a>
                </c:if>

                 </td></shiro:hasPermission>
        </tr>
    </c:forEach>
    </tbody>
</table>
<div class="pagination">${page}</div>
</body>
</html>
